package com.itrip.controller;



import com.itrip.dto.ResponseDTO;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

@RestControllerAdvice
public class ItripExceptionHandler {
@ExceptionHandler(value = {Exception.class})
    public Object exceptionHandle(Exception e){
    return new ResponseDTO(103,"请求异常"+e,null);
}

}
